package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SpshenheMapper;
import com.ruoyi.system.domain.Spshenhe;
import com.ruoyi.system.service.ISpshenheService;

/**
 * 商品审核状态Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-12
 */
@Service
public class SpshenheServiceImpl implements ISpshenheService 
{
    @Autowired
    private SpshenheMapper spshenheMapper;

    /**
     * 查询商品审核状态
     * 
     * @param spshId 商品审核状态主键
     * @return 商品审核状态
     */
    @Override
    public Spshenhe selectSpshenheBySpshId(Long spshId)
    {
        return spshenheMapper.selectSpshenheBySpshId(spshId);
    }

    /**
     * 查询商品审核状态列表
     * 
     * @param spshenhe 商品审核状态
     * @return 商品审核状态
     */
    @Override
    public List<Spshenhe> selectSpshenheList(Spshenhe spshenhe)
    {
        return spshenheMapper.selectSpshenheList(spshenhe);
    }

    /**
     * 新增商品审核状态
     * 
     * @param spshenhe 商品审核状态
     * @return 结果
     */
    @Override
    public int insertSpshenhe(Spshenhe spshenhe)
    {
        return spshenheMapper.insertSpshenhe(spshenhe);
    }

    /**
     * 修改商品审核状态
     * 
     * @param spshenhe 商品审核状态
     * @return 结果
     */
    @Override
    public int updateSpshenhe(Spshenhe spshenhe)
    {
        return spshenheMapper.updateSpshenhe(spshenhe);
    }

    /**
     * 批量删除商品审核状态
     * 
     * @param spshIds 需要删除的商品审核状态主键
     * @return 结果
     */
    @Override
    public int deleteSpshenheBySpshIds(Long[] spshIds)
    {
        return spshenheMapper.deleteSpshenheBySpshIds(spshIds);
    }

    /**
     * 删除商品审核状态信息
     * 
     * @param spshId 商品审核状态主键
     * @return 结果
     */
    @Override
    public int deleteSpshenheBySpshId(Long spshId)
    {
        return spshenheMapper.deleteSpshenheBySpshId(spshId);
    }
}
